package chances.epg.entity.content;

import java.util.Date;

import chances.epg.entity.AccessEntity;


public class AlbumItem extends AccessEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3533805136819568548L;

	/**
	 * 单剧集
	 */
	public static final String ITEMTYPE_VOD="vod";
	
	/**
	 * 连续剧
	 */
	public static final String ITEMTYPE_SERIES="series";
	
	private Long id;
	private String albumCode;
	private String contentType;
	private String contentCode;
	private String contentTitle;
	private int itemOrder;
	private Date validTime;
	
	private String contentIcon;
	private String contentPoster;
	private String contentStill;
	
	private Integer showFlag;
	
	/**
	 * 连续剧内容.
	 * @return
	 */
	public boolean isSeries() {
		return ITEMTYPE_SERIES.equals(this.contentType);
	}
	
	/**
	 * 单集内容.
	 * @return
	 */
	public boolean isVod() {
		return ITEMTYPE_VOD.equals(this.contentType);
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getContentCode() {
		return contentCode;
	}

	public void setContentCode(String contentCode) {
		this.contentCode = contentCode;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAlbumCode() {
		return albumCode;
	}

	public void setAlbumCode(String albumCode) {
		this.albumCode = albumCode;
	}

	public String getContentTitle() {
		return contentTitle;
	}

	public void setContentTitle(String contentTitle) {
		this.contentTitle = contentTitle;
	}

	public int getItemOrder() {
		return itemOrder;
	}

	public void setItemOrder(int itemOrder) {
		this.itemOrder = itemOrder;
	}

	public String getContentIcon() {
		return contentIcon;
	}

	public void setContentIcon(String contentIcon) {
		this.contentIcon = contentIcon;
	}

	public String getContentPoster() {
		return contentPoster;
	}

	public void setContentPoster(String contentPoster) {
		this.contentPoster = contentPoster;
	}

	public String getContentStill() {
		return contentStill;
	}

	public void setContentStill(String contentStill) {
		this.contentStill = contentStill;
	}

	public Date getValidTime() {
		return validTime;
	}

	public void setValidTime(Date validTime) {
		this.validTime = validTime;
	}

    /**
     * @return the showFlag
     */
    public Integer getShowFlag() {
        return showFlag;
    }

    /**
     * @param showFlag the showFlag to set
     */
    public void setShowFlag(Integer showFlag) {
        this.showFlag = showFlag;
    }
}
